export const basicFormOption = {
  submitText: '提交',
  emptyText: '清空',
  labelWidth: 160,
  labelPosition: 'right',
  labelSuffix: ' ',
  menuBtn: true,
  column: [
    {
      label: '材质',
      prop: 'materialQulity',
      span: 8,
      rules: [{
        required: false,
        message: "请输入材质",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '基础特征码',
      prop: 'basicFeature_code',
      span: 8,
      rules: [{
        required: false,
        message: "请输入基础特征码",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '材质代码',
      prop: 'materialQualityCode',
      span: 8,
      rules: [{
        required: false,
        message: "请输入材质代码",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '材料编号',
      prop: 'materialNumber',
      span: 8,
      rules: [{
        required: false,
        message: "请输入材料编号",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '外圆',
      prop: 'cylindrical',
      span: 8,
      rules: [{
        required: false,
        message: "请输入外圆",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '外边',
      prop: 'edgeOfCircle',
      span: 8,
      rules: [{
        required: false,
        message: "请输入外边",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '短边',
      prop: 'shortSide',
      span: 8,
      rules: [{
        required: false,
        message: "请输入短边",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '焊缝',
      prop: 'weldingSeam',
      span: 8,
      rules: [{
        required: false,
        message: "请输入焊缝",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '外径(原材料默认此字段为 主)',
      prop: 'outsideDiameter',
      span: 8,
      rules: [{
        required: false,
        message: "请输入外径(原材料默认此字段为 主)",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '壁厚( 原材料默认此字段为 主)',
      prop: 'wallThickness',
      span: 8,
      rules: [{
        required: false,
        message: "请输入壁厚( 原材料默认此字段为 主)",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '长',
      prop: 'length',
      span: 8,
      rules: [{
        required: false,
        message: "请输入长",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '宽',
      prop: 'weight',
      span: 8,
      rules: [{
        required: false,
        message: "请输入宽",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '厚',
      prop: 'thick',
      span: 8,
      rules: [{
        required: false,
        message: "请输入长",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '标准',
      prop: 'standard',
      span: 8,
      rules: [{
        required: false,
        message: "请输入标准",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '外径(原材料默认此字段为 副)',
      prop: 'outsideDiameterAssistant',
      span: 8,
      rules: [{
        required: false,
        message: "请输入外径(原材料默认此字段为 副)",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '壁厚(原材料默认此字段为 副)',
      prop: 'wallThicknessAssistant',
      span: 8,
      rules: [{
        required: false,
        message: "请输入壁厚(原材料默认此字段为 副)",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '管件基础码',
      prop: 'basicCodePipeFittings',
      span: 8,
      rules: [{
        required: false,
        message: "管件基础码",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '管件特征码',
      prop: '管件特征码',
      span: 8,
      rules: [{
        required: false,
        message: "管件特征码",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '物料编码',
      prop: 'materialNo',
      span: 8,
      rules: [{
        required: true,
        message: "请输入物料编码",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '物料名称',
      prop: 'materialName',
      span: 8,
      rules: [{
        required: true,
        message: "请输入物料名称",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '物料分类',
      prop: 'materialClassification',
      span: 8,
      type: 'tree',
      props: {
        children: "childList",
        label: "name",
        value: "no"
      },
      rules: [{
        required: true,
        message: "请选择物料分类",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '物料状态',
      prop: 'state',
      span: 8,
      type: 'select',
      props: {
        label: 'label',
        value: 'value'
      },
      rules: [{
        required: true,
        message: "请选择物料状态",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '规格',
      prop: 'specification',
      span: 8
    },
    {
      label: '物料主图',
      prop: 'materialPicture',
      span: 8,
      formslot: true,
    },
    {
      label: '单位',
      prop: 'basicUnit',
      span: 8,
      formslot: true,
    },
    {
      label: "使用组织",
      prop: "companyCode",
      span: 8,
      type: "select",
      rules: [{
        required: true,
        message: "请选择使用组织",
        trigger: ['blur', 'change']
      }]
    },
    {
      label: '是否批次管理',
      prop: 'enableBatch',
      span: 8,
      type: 'radio',
      value: '1',
    },
    {
      label: '半成品简称',
      prop: 'materialShort',
      span: 8
    },
    {
      label: '静置时长',
      prop: 'staticTime',
      span: 8,
      append: '小时',
    },
    {
      label: '是否需要来料检验',
      prop: 'incomingCheck',
      type: 'radio',
      value: '0',
      dicData: [{
        label: '检验',
        value: '0'
      },
        {
          label: '免检',
          value: '1'
        },
      ],
      span: 8
    },
    {
      label: '物料描述',
      prop: 'materialDescription',
      type: 'textarea',
      span: 24
    },
    {
      label: '客户版本号',
      prop: 'customerVersionNo',
      span: 8
    },
    {
      label: '客户编码',
      prop: 'customerNo',
      formslot: true,
      span: 8
    },
    {
      label: '产品打印编码',
      prop: 'productPrintNo',
      span: 8
    },
    {
      label: '特征码',
      prop: 'signatureCode',
      span: 8
    },
    {
      label: '料号提壁厚辅助',
      prop: 'thicknessAssistance',
      span: 8
    },
    {
      label: '基础码',
      prop: 'basicCode',
      span: 8
    },
    {
      label: '公称尺寸',
      prop: 'nominalSize',
      span: 8
    },
    {
      label: '接管系列',
      prop: 'takeoverSeries',
      span: 8
    },
    {
      label: '公称压力',
      prop: 'nominalPressure',
      span: 8
    },
    {
      label: '接管壁厚',
      prop: 'connectingWallThickness',
      span: 8
    },
    {
      label: '材质牌号',
      prop: 'materialGrade',
      span: 8
    },
    {
      label: '密封面形式',
      prop: 'sealingSurfaceForm',
      span: 8
    },
    {
      label: '产品标准代号',
      prop: 'productStandardCode',
      span: 8
    },
    {
      label: '单重',
      prop: 'singleWeight',
      span: 8
    },
    {
      label: '法兰标准书单重',
      prop: 'flange_standard_book_weight',
      span: 8
    },
  ],
};


// 主页table
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  selection: false,
  stripe: true,
  menuAlign: 'center',
  editBtn: false,
  delBtn: false,
  menuWidth: 150,
  align: 'left',
  addBtn: false,
  tip: false,
  height: 'auto',
  calcHeight: 100,
  searchIndex: 7,
  searchMenuSpan: 18,
  column: [
    {
      label: "使用组织",
      prop: "companyCode",
      search: true,
      overHidden: true,
      width: 100,
      align: "center",
      type: "select",
    },
    {
      label: '物料编码',
      prop: 'materialNo',
      search: true,
      width: 250,
    },
    {
      label: '物料名称',
      prop: 'materialName',
      search: true,
    },
    {
      label: '物料分类',
      prop: 'materialClassification',
      type: 'tree',
      props: {
        children: 'childList',
        label: "name",
        value: "no"
      },
      search: true,
      width: 120,
    },
    {
      label: '是否批次管理',
      width: 120,
      prop: 'enableBatch',
      align: 'center',
    },
  ],
};

// 物料条码
export const materialTmOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  selection: false,
  stripe: true,
  menuAlign: 'center',
  editBtn: false,
  delBtn: false,
  menuWidth: 150,
  align: 'left',
  addBtn: false,
  column: [
    {
      sortable: true,
      label: '物料编码',
      prop: 'materialNo',
      overHidden: true,
      align: 'center'
    },
    {
      sortable: true,
      label: '颜色名称',
      prop: 'colorName',
      overHidden: true,
      align: 'center',
      slot: true
    },
    {
      sortable: true,
      label: '颜色编码',
      prop: 'colorNo',
      overHidden: true,
      align: 'center'
    },
    {
      sortable: true,
      label: '物料条码',
      prop: 'barcode',
      overHidden: true,
      align: 'center'
    }
  ]
};

// 主页头部搜索表单
export const filterSys = {
  radioGroup: {
    prop: 'mstate',
    props: {
      label: 'name',
      value: 'value'
    },
    valueDefault: '',
    dicData: [
      {
        name: '全部',
        value: ''
      },
      {
        name: '启用',
        value: '1'
      },
      {
        name: '停用',
        value: '0'
      }
    ]
  },
  filterOption: {
    card: false,
    emptyBtn: false,
    submitBtn: false,
    labelWidth: 0,
    remote: false,
    column: [
      {
        label: '物料编号/名称',
        prop: 'material',
        span: 6
      },
      {
        label: 'test',
        prop: 'workOrderNo',
        span: 6,
        formslot: true
      },
      {
        label: "物料分类",
        prop: "tempName",
        type: "cascader",
        checkStrictly: true,
        searchCheckStrictly: true,
        span: 6,
        filterable: true,
        props: {
          value: "typeCode",
          label: "typeName",
          checkStrictly: true,
        }
      },
      {
        label: '修改时间',
        prop: 'takeEffectTime',
        type: 'datetimerange',
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
        format: 'yyyy-MM-dd HH:mm:ss',
        span: 6
      },
      {
        label: '修改人',
        prop: 'updateUser',
        span: 6
      },
      {
        label: 'bomId',
        prop: 'storeArea',
        span: 6,
        formslot: true
      },
      {
        label: '工艺分类',
        prop: 'processClassification',
        span: 6,
        type: 'select',
      },
    ]
  }
};

// 供应商信息 table
export const supplierTableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  selection: false,
  stripe: true,
  menu: true,
  editBtn: false,
  delBtn: true,
  align: 'left',
  addBtn: false,
  height: '200px',
  column: [
    {
      label: '供应商代码',
      prop: 'supplierCode',
      align: 'center',
      overHidden: true,
      width: 200
    },
    {
      label: '供应商名称',
      prop: 'supplierName',
      align: 'center',
      overHidden: true,
    },
    {
      label: '采购配比（%）',
      prop: 'quota',
      align: 'center',
      slot: true,
      width: 120
    }
  ]
};

//条码table
export const barcodeOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  selection: true,
  stripe: true,
  menuAlign: 'center',
  editBtn: false,
  delBtn: false,
  menuWidth: 150,
  align: 'left',
  addBtn: false,
  column: [
    {
      sortable: true,
      label: '物料编码',
      prop: 'materialNo',
      overHidden: true,
      width: 150,
      align: 'center'
    },
    {
      sortable: true,
      label: '颜色名称',
      prop: 'colorName',
      overHidden: true,
      align: 'center',
      width: 200
    },
    {
      sortable: true,
      label: '颜色代码',
      prop: 'colorCode',
      overHidden: true,
      align: 'center',
      width: 200
    },
    {
      sortable: true,
      label: '物料条码',
      prop: 'version',
      overHidden: true,
      align: 'center',
      width: 120,
      slot: true
    }
  ]
};

